# ConArtist top level makefile
#
#

include @topdir@/build/settings

DIRS=lib pipes stores
EXTRA_DIRS=mod_conartist svn_notifier

all:	libs

libs:
	@for d in $(DIRS); do                                          \
		echo "Building in $$d";                                \
		(cd $$d && make --no-print-directory) || exit 1;       \
	done

module:	libs
	@echo "Building ConArtist httpd module"
	@(cd mod_conartist && make --no-print-directory) || exit 1

notifier:
	@echo "Building svn notification daemon and client"
	@(cd svn_notifier && make --no-print-directory) || exit 1

clean:
	@for d in $(DIRS) $(EXTRA_DIRS); do                                          \
		echo "Cleaning in $$d";                                \
		(cd $$d && make --no-print-directory clean) || exit 1; \
	done

test:	libs
	(cd tests && make --no-print-directory) || exit 1
	(cd svn_notifier && make --no-print-directory test) || exit 1
	(cd tests && ./ca_test) || exit 1
dox:
	doxygen ./doxygen.conf

